home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / cserial.zip / PRINTER.H < prev    next >
Text File  |  1990-04-04  |  1KB  |  37 lines

  1. /*
  2.  *                             PRINTER.H
  3.  *
  4.  *                           Written for the
  5.  *
  6.  *                              Datalight
  7.  *                           Microsoft V 5.x
  8.  *                                TurboC
  9.  *                                  &
  10.  *                               Zortech
  11.  *
  12.  *                             C Compilers
  13.  *
  14.  *            Copyright (c) John Birchfield 1987, 1988, 1989
  15.  *
  16.  * Output a character to the printer port using software interrupt
  17.  * 0x17.  Returns !0 if unsuccessful, 0 otherwise.
  18.  *
  19.  * Usage while (print_char (ch));
  20.  */
  21.  
  22. #define PR_SELECTED 0x90
  23.  
  24. /*
  25.  *      flag returned   7 6 5 4 3 2 1 0
  26.  *                      | | | | | | | |-------  Time out
  27.  *                      | | | | | | |---------  
  28.  *                      | | | | | |-----------
  29.  *                      | | | | |-------------  IO error
  30.  *                      | | | |---------------  Selected
  31.  *                      | | |-----------------  Out of paper
  32.  *                      | |-------------------  
  33.  *            |---------------------    Busy
  34.  */
  35.  
  36. int  print_char (char);
  37.